package cn.itsource.org.service;

import cn.itsource.base.util.PageBean;
import cn.itsource.org.domain.Department;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.domain.Shop;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService {
    //基础查询
    void save(Employee emp);

    void remove(Long id);

    void update(Employee emp);

    Employee findById(Long id);

    List<Employee> findAll();

    /**
     * 分页查询
     *
     */
    //查询总条数
    Integer queryCount(EmployeeQuery query);
//    //查询当前的页数
    PageBean<Employee> queryData(EmployeeQuery query);
//
    void patch(List<Long> ids);

    //查询员工的所有部门
    List<Department> getDeptsOfEmps();

    //查询员工的所有店铺
    List<Shop> getShopsOfEmps();
}
